package com.linksfield.topup.config.dto;

import org.springframework.stereotype.Component;

/**
 * String literals should not be duplicated5
 * <p>
 * 字符串不应该重复，如果多次用到同一字符串，建议将该字符串定义为字符串常量，再引用
 * <p>
 * 此工具类具体定义字符串输出的常量
 *
 * @author: lm
 * @date: 2020-04-02 10:33
 */
@Component
public class StringOutputConstant {
    public static final String CODE_TOKEN_EMPTY = "x-access-token不能为空！";

    public static final String CODE_TOKEN_INVALID = "无效的x-access-token!";

    public static final String CODE_PARAM_ERROR = "请求报文不合法：存在不允许为空的参数!";

    public static final String CODE_ACCOUNT_ERROR = "账号不存在";

    public static final String CODE_PASSWORD_ERROR = "密码错误";

    public static final String CODE_OLD_PASSWORD_ERROR = "旧密码错误，不允许修改";

    public static final String CODE_ACCOUNT_BLOCK_ERROR = "账号已被冻结，请联系管理员!";

    public static final String CODE_ADMIN_LIMIT_ERROR = "管理员无权限操作此项!";

    public static final String CODE_PARTNER_LIMIT_ERROR = "普通用户无权限操作此项!";

    public static final String CODE_SAME_TIME_LOGIN_ERROR = "账号存在同时登录现象，请重新登录!";

    public static final String CODE_MONTH_PARAM_ERROR = "参数month的值有误，请按约定传值!";

    public static final String CODE_PROGRAM_ERROR = "程序内部发生了错误，请稍后重试！";

    public static final String CODE_DATE_FORMAT_ERROR = "请求的时间格式有误！";

    public static final String CODE_OP_ADMIN_ERROR = "管理员账号密码是固定的，您无权修改!";

    public static final String CODE_EDIT_PASSWORD_TIPS = "新密码与旧密码相同，密码未修改，可直接登录！";

    public static final String CODE_EDIT_PASSWORD_SUCCESS = "密码修改成功，请返回登录页登录！";

    public static final String CODE_EDIT_PASSWORD_FAILD = "密码修改失败，请稍后重试！";

    public static final String CODE_RIGHT_ERROR = "管理员账号不允许重置密码，不允许封禁账号";

    public static final String CODE_ORDER_ERROR = "请求指令有误，请联系管理员！";

    public static final String CODE_PARAM_LANG_ERROR = "语言文本中存在不可为空的参数！";

    public static final String CODE_ORDER_CONFIG_ERROR = "请求指令有误：configType值有误！";

    public static final String CODE_CONFIG_EXIST_ERROR = "企业已有启用方案,请先停用方案再启新方案！";

    public static final String CODE_OPEN_ERROR = "方案启用失败，请稍后重试！";

    public static final String CODE_STOP_ERROR = "方案停用失败，请稍后重试！";

    public static final String CODE_OPERATE_ERROR = "当前方案不符合操作规则！";

    public static final String CODE_STORE_LANG_ERROR = "语言配置存储有误，请联系管理员！";

    public static final String CODE_STORE_CONFIG_ERROR = "新建方案遇到了问题，请联系管理员！";

    public static final String CODE_PARAM_PAY_ERROR = "支付配置文本中存在不可为空的参数！";

    public static final String CODE_BGM_ERROR = "背景图片更改方案有误，请联系管理员！";

    public static final String CODE_LANG_EDIT_ERROR = "语言编辑有误，请联系管理员！";

    public static final String CODE_CONTENT_EDIT_ERROR = "内容编辑有误，请联系管理员！";

    public static final String CODE_PAY_EDIT_ERROR = "支付编辑有误，请联系管理员！";

    public static final String CODE_JSON_PARAM_ERROR = "请求报文必须是json格式";

    public static final String CODE_CREATE_ERROR = "当前企业没有已启用的方案无法创建套餐！";
    /**
     * operStatus= '01'
     * 被锁定的代码
     */
    public static final String CODE_BLOCK = "01";
    /**
     * operStatus= '00'
     * 正常用户的代码
     */
    public static final String CODE_NORMAL = "00";
    /**
     * 返回成功的代码
     */
    public static final String CODE_SUCCESS = "success";
    /**
     * 角色管理员：rolesId=1
     */
    public static final String CODE_ADMIN = "1";
    /**
     * 角色普通企业用户：rolesId=2
     */
    public static final String CODE_PARTNER = "2";
    /**
     * 用户名
     */
    public static final String CODE_USERNAME = "userName";
    /**
     * 用户密码
     */
    public static final String CODE_USERPWD = "userPwd";
    /**
     * 设置token的有效期时长，目前是12个小时，也就是43200000毫秒
     */
    public static final long CODE_EXPIRES = 43200000;
    /**
     * -1的代码
     */
    public static final String CODE_MINUS_ONE = "-1";
    /**
     * 0000的代码
     */
    public static final String CODE_SUCCESS_ZERO = "0000";
    /**
     * 0的代码
     */
    public static final String CODE_ZERO = "0";
    /**
     * 1的代码
     */
    public static final String CODE_ONE = "1";
    /**
     * 2的代码
     */
    public static final String CODE_TWO = "2";
    /**
     * 3的代码
     */
    public static final String CODE_THREE = "3";
    /**
     * 4的代码
     */
    public static final String CODE_FOUR = "4";
    /**
     * 5的代码
     */
    public static final String CODE_FIVE = "5";
    /**
     * 6的代码
     */
    public static final String CODE_SIX = "6";
    /**
     * 7的代码
     */
    public static final String CODE_SEVEN = "7";

    /**
     * 8的代码
     */
    public static final String CODE_EIGHT = "8";
    /**
     * 9的代码
     */
    public static final String CODE_NINE = "9";
    /**
     * 10的代码
     */
    public static final String CODE_TEN = "10";
    /**
     * 11的代码
     */
    public static final String CODE_ELEVEN = "11";
    /**
     * 12的代码
     */
    public static final String CODE_TWELVE = "12";
    /**
     * USD的代码
     */
    public static final String CODE_USD = "USD";
    /**
     * eur的代码
     */
    public static final String CODE_EUR = "EUR";
    /**
     * active的代码
     */
    public static final String CODE_ACTIVE = "active";
    /**
     * canceled的代码
     */
    public static final String CODE_CANCELED = "canceled";
    /**
     * Day的代码
     */
    public static final String CODE_DAY = "Day";
    /**
     * Month的代码
     */
    public static final String CODE_MONTH = "Month";
    /**
     * Year的代码
     */
    public static final String CODE_YEAR = "Year";
}
